{extend name="layout/layout" /}

{block name="content"}
<div class="row js-check-wrap">
    <div class="col-lg-12">
        <div class="portlet light">
            <div class="box-header">
                <div class="row">
                    {//include file="common:searcharea2" /}
                    <div class="col-md-10">
                        <form id="searchForm" action="" class="form" method="post">
                            <div class="form-inline">
                                <input class="city" type="hidden" name="cityId" value="{$dynamictype.cityId}">
                                <input class="xian" type="hidden" name="xianId" value="{$dynamictype.xianId}">
                                <input class="town" type="hidden" name="townId" value="{$dynamictype.townId}">
                                <input class="village" type="hidden" name="villageId" value="{$dynamictype.villageId}">
                                <p class="form-control-static"> {$area} </p>

                                <input type="text" class="form-control" name="content" value="" placeholder="内容">
                                <label>审核状态 ：</label>
                                <select class="form-control" name="isPass">
                                    <option value="">所有</option>
                                    <option value="0">未审核</option>
                                    <option value="1">审核通过</option>
                                    <option value="2">审核未通过</option>
                                </select>
                                &nbsp;&nbsp;&nbsp;
                                <button id="doSearch" type="button" class="btn btn-success" title="筛选">
                                    <i class="fa fa-search"></i> 筛选
                                </button>
                                <button type="reset" class="btn btn-danger" title="清空">
                                    <i class="fa fa-trash"></i> 清空
                                </button>
                            </div>
                        </form>
                    </div>
                    <div class="col-md-2">
                        <div class="pull-right">
                            <a href="{:url('admin/'.strtolower($model).'/add', ['typeId' => $typeId])}" class="btn blue btn-circle"><i class="fa fa-plus"></i> 发布信息</a>
                        </div>
                    </div>
                </div>
            </div>
            <div class="portlet-body">
                <form class="js-ajax-form" method="post">
                    <div class="">
                        <table id="data-table" class="table table-bordered table-hover dataTable">
                            <thead>
                            <th>头像</th>
                            <th>发布者</th>
                            <th>内容</th>
                            <th>分类</th>
                            <th>发布时间</th>
                            <th>审核状态</th>
                            <th>操作</th>
                            </thead>
                        </table>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>

<input type="hidden" class="dongtaicheckoff" value="{$dongtaicheckoff}">

<input type="hidden" class="datalist_url" value="{:url('admin/communitydynamics/index', ['typeId' => $typeId])}">
<input type="hidden" class="edit_url" value="{:url('admin/communitydynamics/edit', ['typeId' => $typeId])}">
<input type="hidden" class="detail_url" value="{:url('admin/communitydynamics/detail')}">
<input type="hidden" class="delete_url" value="{:url('admin/communitydynamics/delete')}">
{/block}

{block name="pagescript"}
<script src="__STATIC__/admin/pages/js/dynamic.js" type="text/javascript"></script>
{/block}